package com.springboot.cloud.demos.producer.service;

import com.springboot.cloud.demos.entity.param.AlbumQueryParam;
import com.springboot.cloud.demos.entity.po.Album;

import java.util.List;
import java.util.Map;

public interface IAlbumService {
    /**
     * 获取
     *
     * @param id
     * @return
     */
    Album get(String id);

    /**
     * 新增
     *
     * @param album
     * @return
     */
    boolean add(Album album);
    /**
     * 新增
     *
     * @param albums
     * @return
     */
     boolean batchAdd(List<Album> albums);
    /**
     * 查询
     *
     * @return
     */
    List<Album> query(AlbumQueryParam param);

    /**
     * 更新信息
     *
     * @param album
     */
    boolean update(Album album);

    /**
     * 根据id删除
     *
     * @param id
     */
    boolean delete(String id);

    void deleteByUrl(String url);
}
